<!DOCTYPE html>
<html lang="Zh-CN">
    <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>库存管理系统</title>
        <!-- plugins:css -->
        <link rel="stylesheet" href="/static/vendors/mdi/css/materialdesignicons.min.css">
        <link rel="stylesheet" href="/static/vendors/base/vendor.bundle.base.css">
        <!-- endinject -->
        <!-- plugin css for this page -->
        <link rel="stylesheet" href="/static/vendors/datatables.net-bs4/dataTables.bootstrap4.css">
        <!-- End plugin css for this page -->
        <!-- inject:css -->
        <link rel="stylesheet" href="/static/css/style.css">
        <!-- endinject -->
        <link rel="shortcut icon" href="/static/images/favicon.png" />
    </head>
    <tbody>
        <div class="container-scroller">
            <nav class="navbar col-lg-12 col-12 p-0 d-flex flex-row fixed-top">
                <div class="navbar-brand-wrapper d-flex justify-content-center">
                      <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">  
                        <a class="navbar-brand brand-logo" href="{% url 'login:index1' %}"><img src="/static/images/logo.svg" alt="logo"/></a>
                        <a class="navbar-brand brand-logo-mini" href="{% url 'login:index1' %}"><img src="/static/images/logo-mini.svg" alt="logo"/></a>
                        <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
                          <span class="mdi mdi-sort-variant">
                          </span>
                        </button>
                      </div>  
                  </div>
                <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
                  <ul class="navbar-nav navbar-nav-right">
                    <li class="nav-item dropdown me-4">
                      <a class="nav-link count-indicator dropdown-toggle d-flex align-items-center justify-content-center notification-dropdown" id="notificationDropdown" href="#" data-bs-toggle="dropdown">
                        <i class="mdi mdi-bell mx-0"></i>
                        <span class="count"></span>
                      </a>
                      <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="notificationDropdown">
                        <p class="mb-0 font-weight-normal float-left dropdown-header">待办通知</p>
                        <a class="dropdown-item">
                          <div class="item-thumbnail">
                            <div class="item-icon bg-success">
                              <i class="mdi mdi-information mx-0"></i>
                            </div>
                          </div>
                          <div class="item-content">
                            <h6 class="font-weight-normal">未处理事务</h6>
                            <p class="font-weight-light small-text mb-0 text-muted">
                              您有未处理的订单
                            </p>
                          </div>
                        </a>
                      </div>
                    </li>
                    <li class="nav-item nav-profile dropdown">
                      <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" 
                      id="profileDropdown">
                        <img src="/static/images/faces/face-czw.jpg" alt="profile">
                        <span class="nav-profile-name">赤之王</span>
                      </a>
                      <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
                        <a class="dropdown-item">
                          <i class="mdi mdi-settings text-primary"></i>
                          账户设置
                        </a>
                        <a class="dropdown-item">
                          <i class="mdi mdi-logout text-primary"></i>
                          下班！
                        </a>
                      </div>
                    </li>
                  </ul>
                  <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
                    <span class="mdi mdi-menu"></span>
                  </button>
                </div>
              </nav>
            <div class="container-fluid page-body-wrapper pt-0 proBanner-padding-top">
                <nav class="sidebar sidebar-offcanvas active" id="sidebar">
                  <ul class="nav"><!--与采购一样，研究下怎么通过选中内容生成数据表后台推送-->

                    <li class="nav-item">
                      <a type="button" class="nav-link" data-toggle="popover" title="点击发送采购请求" href="{% url 'warehouse:req_plan' %}" onclick="alertTips('已成功发送采购请求')" >
                        <i class="mdi mdi-file-document-box-outline menu-icon"></i>
                        <span class="menu-title">发起采购请求</span>
                      </a>
                    </li>

                    <li class="nav-item">
                      <a type="button" class="nav-link" data-toggle="popover" title="点击执行更新库存" href="{% url 'warehouse:update_stock' %}" onclick="alertTips('已成功更新库存信息')">
                        <i class="mdi mdi-file-document-box-outline menu-icon"></i>
                        <span class="menu-title">更新库存信息</span>
                      </a>
                    </li>

                    <li class="nav-item">
                      <a type="button" class="nav-link" data-toggle="popover" title="点击执行库存盘点" href="{% url 'warehouse:change_stock' %}" onclick="alertTips('已成功修改库存信息')">
                        <i class="mdi mdi-file-document-box-outline menu-icon"></i>
                        <span class="menu-title">修改库存信息</span>
                      </a>
                    </li>


                  </ul>
                </nav>

                <div class="main-panel">
                    <div class="content-wrapper">
                      <div class="row grid-margin stretch-card"><!--根据数据库生成库存变化折线图-->
                        <div class="card">
                          <div class="card-body">
                            <div class="chartjs-size-monitor">
                              <iframe frameborder=1 src={% url 'warehouse:print_bar' %} width="100%" height="540px" ></iframe>
                            </div>
                          </div>
                        </div>
                      </div>
                        <iframe frameborder=1 src={% url 'warehouse:predict_num' %} width="100%" height="500px" ></iframe>
                        <iframe frameborder=1 src={% url 'warehouse:in_out_return' %} width="100%" height="1500px" ></iframe>
                        <iframe frameborder=1 src={% url 'warehouse:get_inv' %} width="100%" height="500px"></iframe>
                    </div>
                    <footer class="footer">
                      <div class="d-sm-flex justify-content-center justify-content-sm-between">
                        <span class="text-muted text-center text-sm-left d-block d-sm-inline-block">
                          Copyright © 
                          <a href="https://www.bootstrapdash.com/" target="_blank">bootstrapdash.com </a>
                          2021
                        </span>
                        <span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">
                          Only the best <a href="https://www.bootstrapdash.com/" target="_blank"> Bootstrap dashboard  </a> 
                          templates
                        </span>
                      </div>
                    </footer>
                </div>
            </div>
        </div>
    <!-- plugins:js -->
    <script src="/static/vendors/base/vendor.bundle.base.js"></script>
    <!-- endinject -->
    <!-- Plugin js for this page-->
    <script src="/static/vendors/chart.js/Chart.min.js"></script>
    <script src="/static/vendors/datatables.net/jquery.dataTables.js"></script>
    <script src="/static/vendors/datatables.net-bs4/dataTables.bootstrap4.js"></script>
    <!-- End plugin js for this page-->
    <!-- inject:js -->
    <script src="/static/js/off-canvas.js"></script>
    <script src="/static/js/hoverable-collapse.js"></script>
    <script src="/static/js/template.js"></script>
    <!-- endinject -->
    <!-- Custom js for this page-->
    <script src="/static/js/dashboard.js"></script>
    <script src="/static/js/data-table.js"></script>
    <script src="/static/js/jquery.dataTables.js"></script>
    <script src="/static/js/dataTables.bootstrap4.js"></script>
    <!-- End custom js for this page-->

    <script src="/static/js/jquery.cookie.js" type="text/javascript"></script>
    <script>
        function alertTips(msg){
            alert(msg);
        }
    </script>
    </body>
</html>